<%--
  Created by IntelliJ IDEA.
  User: 周筠皓
  Date: 2024/12/15
  Time: 15:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>

    <title>Insert title here</title>
</head>
<body>
<table border="1">
    <th>
    <td>编号</td>
    <td>姓名</td>
    <td>操作</td>
    </th>

    <c:forEach items="${users}" var="e">
        <tr>
            <td></td>
            <td>${e.getUserId() }</td>
            <td>${e.getUserName() }</td>
            <td>
                <a href="delEmp/${e.getUserId() }">删除</a>
                <a href="findEmp/${e.getUserId()}">修改</a>
            </td>
        </tr>
    </c:forEach>

    <div>
        <c:if test="${currentPage > 1}">
            <a href="selectAll?currentPage=${currentPage - 1}&pageSize=${pageSize}">上一页</a>
        </c:if>
        <span>第 ${currentPage} 页 / 共 ${totalPage} 页</span>
        <c:if test="${currentPage < totalPage}">
            <a href="selectAll?currentPage=${currentPage + 1}&pageSize=${pageSize}">下一页</a>
        </c:if>
    </div>
</table>



</body>
</html>